<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<body>
    <div style="padding:10px">
        <form id="editForm" method="post" class="easyui-form">
            <input type="hidden" name="id" th:value="${data.id}"/>
            <table cellpadding="5" align="center">
                <tr>
                    <td>登录帐号:</td>
                    <td><input class="easyui-validatebox" type="text" name="loginName"   th:value="${data.loginName}" data-options="editable:false,required:true,validType:'maxLength[20]'"/></td>
                </tr>
                <tr>
                    <td>真实姓名:</td>
                    <td><input class="easyui-validatebox" type="text" name="realName" th:value="${data.realName}" data-options="required:true,validType:'maxLength[20]'"/></td>
                </tr>
                <tr>
                    <td>手机号:</td>
                    <td><input class="easyui-validatebox" type="text" name="phone" th:value="${data.phone}" data-options="required:true,validType:'mobile'"/></td>
                </tr>
                <tr>
                    <td>Email:</td>
                    <td><input class="easyui-validatebox" type="text" name="email" th:value="${data.email}" data-options="required:true,validType:'email'"/></td>
                </tr>
                <tr>
                    <td>状态:</td>
                    <td>
                        <select class="easyui-combobox" name="state" th:value="${data.state}" style="width:80px" data-options="panelHeight:'auto'">
                            <option value="0" th:selected="${data.state==0}">锁定</option>
                            <option value="1" th:selected="${data.state==1}">启用</option>
                        </select>
                    </td>
                </tr>
            </table>
        </form>
    </div>
</body>
</html>